ConsultTopicclasstopicEntry.t[531], consultsuggs.t[152]

A ConsultTopic is a kind of TopicEntry used in conjunction with a Consultable, and represents something the Consultable can be successfully consulted about.

class ConsultTopic :   TopicEntry

Superclass Tree   (in declaration order)

ConsultTopic
        TopicEntry
                object

Subclass Tree  

ConsultTopic
        DefaultConsultTopic
        FactConsultTopic

Global Objects  

(none)

Summary of Properties  

autoName  curiosityAroused  curiositySatisfied  includeInList  listOrder  name  suggestAs 

Inherited from TopicEntry :
active  getActor  isActive  matchExactCase  matchObj  matchPattern  matchScore  narrator  scoreBoost  topicMatched 

Summary of Methods  

buildName  initializeTopicEntry 

Inherited from TopicEntry :
addTopic  factText  informFact  informNewFact  interpret  matchTopic  qualifiedDesc  revealFact  revealNewFact  scoreBooster  topicResponse 

Properties  

autoNameconsultsuggs.t[196]

If autoName is true, the library will attempt to define the name property from our associated Topic, provided name hasn't already been defined.

curiosityArousedconsultsuggs.t[173]
An expression that should evaluate to true when we want this ConsultTopic to be suggested. Note that both curiosityAroused and curiositySatisfied need to be overridden by expressions or methods) in game code if something other then their default values (or true and nil respectively) are needed.

curiositySatisfiedconsultsuggs.t[181]
An expression that should evaluate to true when we no lomger want this ConsultTopic to be suggested. This needs to be overriden by game code if desired; the extension makes no attempt to update curiositySatisifed to true when, say, a Thought topic has been suggested once or so many times, as each game will probably want to handle this in a different way.

includeInListOVERRIDDENtopicEntry.t[537]
ConsultTopics are listed in the consultTopics property of the Consultable that contains them.

listOrderconsultsuggs.t[165]
The listOrder can be used to determine the order in which ConsultTopic suggestions are listed. Thoughts with a lower listOrder will be listed before Tboughts with a higher listOrder. By default we give all Thoughts a listOrder of 100.

nameconsultsuggs.t[189]
The name to be displayed if you want this Thought to be suggested in response to a THINK command. This should be something that would match the vocab of the Topic associated with this Thought. Alternatively, autoName can be set to true to have the name set to the name of the Topic (or Thing) this Thought matches.

suggestAsconsultsuggs.t[158]
A ConsultTopic should be suggested as a ConsultTopic by consultableSuggestionLister; we need to specify that here since suggestedTopicLister, from which consultableSuggestionLister inherits, needs this information.

Methods  

buildName ( )consultsuggs.t[218]

Construct the name of this ActorTopicEntry by using the theName property of our first matchObj.

initializeTopicEntry ( )OVERRIDDENconsultsuggs.t[200]
Initialize this ConsultTopic (this is actually called at preinit)

Adv3Lite Library Reference Manual
Generated on 13/06/2025 from adv3Lite version 2.2.1